home *** CD-ROM | disk | FTP | other *** search
- /*
- ** $Id: setenv.rexx,v 1.1 1995/02/12 22:14:06 rkr Exp $
- **
- ** Stores given CONTENTS into named env. VAR; always stores in env:,
- ** conditionally stores in envarc: (if ENVARC is passed with value 1)
- **
- ** Does NOT indicate success/failure.
- **
- ** Unlike some AmigaDOS env. operators, these VAR's _will_ go into
- ** env:/envarc:. You canNOT override their destination by embedding a
- ** colon.
- **
- */
- parse arg contents, var, envarc
- call putfile( contents, 'env:'var )
- if 1 = envarc then
- call putfile( contents, 'envarc:'var )
- return contents
-